﻿using Aquarinum.WebSocekt.Core.Dtos;

namespace Aquarinum.Base.Infrastructure.WebSocket.MessageHandler.Defaults
{
    [HandlerProperty(MessageType = "P2P")]
    public class DefaultP2PMessageHandleStrategy : MessageHandleStrategyBase, IMessageHandleStrategy
    {
        public override void HandleMessage(WebsocketMessageDto message)
        {
            var to = message.To;
            MessageSendProxy.SendMessageAsync(to, message);
        }
    }
}